/**
 * Description: 
 * version: 1.0
 * Author: Zero
 * Date: 2021-10-17 15:15:43
 * LastEditors: Zero
 * LastEditTime: 2021-10-21 22:16:03
 */
#ifndef PINCTRL_H_INCLUDED
#define PINCTRL_H_INCLUDED

#ifdef __cplusplus
extern "C" {
#endif 


#include "driver/gpio.h"

#define VDF_PW_PIN 2
#define VDF_PW_PIN_SEL  (1ULL<<VDF_PW_PIN) 

#define WIFI_SATA_PIN 27
#define WIFI_SATA_PIN_SEL  (1ULL<<WIFI_SATA_PIN) 

#define DOT_PIN 4
#define DOT_PIN_SEL  (1ULL<<DOT_PIN) 

#define LED_R_PIN 23
#define LED_R_PIN_SEL  (1ULL<<LED_R_PIN) 
#define LED_G_PIN 18
#define LED_G_PIN_SEL  (1ULL<<LED_G_PIN) 
#define LED_B_PIN 5
#define LED_B_PIN_SEL  (1ULL<<LED_B_PIN) 

#define VDF_PW_EN gpio_set_level(VDF_PW_PIN, 1)
#define VDF_PW_DIS gpio_set_level(VDF_PW_PIN, 0)

#define WIFI_SATA_EN gpio_set_level(WIFI_SATA_PIN, 1);
#define WIFI_SATA_DIS gpio_set_level(WIFI_SATA_PIN, 0);

#define DOT_LIGHT gpio_set_level(DOT_PIN, 1);
#define DOT_DARK gpio_set_level(DOT_PIN, 0);

void PinCtrlInit(void);

#ifdef __cplusplus
}
#endif

#endif